package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.VariationTypeDao;
import com.ericom.model.VariationType;
import com.ericom.service.VariationTypeManager;

@Service("variationTypeManager")
public class VariationTypeManagerImpl extends GenericManagerImpl<VariationType, Long> implements
		VariationTypeManager {

	private VariationTypeDao variationTypeDao;
	@Autowired
	public VariationTypeManagerImpl(VariationTypeDao variationTypeDao){
		super(variationTypeDao);
		this.variationTypeDao=variationTypeDao;
	}
	
	@Override
	public List<VariationType> findByName(String name) {
		return this.variationTypeDao.findByName(name);
	}

}
